package kr.hyunist.androidcomplete01saeildamil.ch19;

import kr.hyunist.androidcomplete01saeildamil.*;
import kr.hyunist.androidcomplete01saeildamil.ch09.*;
import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;

public class Ch19Activity extends Activity {
	Intent intent = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch19activity);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.ch19subtitle1:
			intent = new Intent(this, ThreadEx01.class);
			break;
			
		case R.id.ch19subtitle2:
			intent = new Intent(this, ThreadEx02.class);
			break;
			
		case R.id.ch19subtitle3:
			intent = new Intent(this, ThreadHadlerEx03.class);
			break;	
			
		case R.id.ch19subtitle4:
			intent = new Intent(this, ThreadHadlerEx04.class);
			break;
			
		case R.id.ch19subtitle5:
			intent = new Intent(this, ThreadHadlerEx05.class);
			break;	
			
		case R.id.ch19subtitle6:
			intent = new Intent(this, ThreadHadlerEx06.class);
			break;	
			
		case R.id.ch19subtitle7:
			intent = new Intent(this, LooperEx01.class);
			break;
			
		case R.id.ch19subtitle8:
			intent = new Intent(this, UploadEx01.class);
			break;	
			
		case R.id.ch19subtitle9:
			intent = new Intent(this, UploadEx02.class);
			break;	
			
		case R.id.ch19subtitle10:
			intent = new Intent(this, UploadEx03.class);
			break;
			
		case R.id.ch19subtitle11:
			intent = new Intent(this, UploadEx04.class);
			break;
			
		case R.id.ch19subtitle12:
			intent = new Intent(this, ANREx01.class);
			break;
			
		case R.id.ch19subtitle13:
			intent = new Intent(this, ANREx02.class);
			break;
			
		case R.id.ch19subtitle14:
			intent = new Intent(this, LongTimeEx01.class);
			break;
			
		case R.id.ch19subtitle15:
			intent = new Intent(this, LongTimeEx02.class);
			break;
			
		case R.id.ch19subtitle16:
			intent = new Intent(this, LongTimeEx03.class);
			break;	
			
		case R.id.ch19subtitle17:
			intent = new Intent(this, LongTimeEx04.class);
			break;
			
		case R.id.ch19subtitle18:
			intent = new Intent(this, LongTimeEx05.class);
			break;
			
		case R.id.ch19subtitle19:
			intent = new Intent(this, BackWorkEx01.class);
			break;
			
		case R.id.ch19subtitle20:
			intent = new Intent(this, BackWorkEx02.class);
			break;
			
		case R.id.ch19subtitle21:
			intent = new Intent(this, BackWorkEx03.class);
			break;	
			
		case R.id.ch19subtitle22:
			intent = new Intent(this, BackWorkEx04.class);
			break;	
			
		case R.id.ch19subtitle23:
			intent = new Intent(this, ThreadHandlerTest.class);
			break;
		}
		startActivity(intent);
	}
}
